<?php
namespace app\index\validate;

use think\Validate;

class VisitorValidate extends Validate
{
    protected $rule = [
        ['user_name', 'unique:home_visitor|min:6|max:15', '该用户名已被注册|用户名最少为6位|用户名最多为15位'],
		['passwd', 'require|min:6|max:15', '密码不能为空|密码最少为6位|密码最多为15位'],
		['repasswd', 'require|confirm:passwd', '请输入确认密码|两次密码输入不一致'],
		['email', 'unique:home_visitor|email', '该邮箱已被注册|邮箱格式不合法']
    ];

}
